ind2rgb
I = ind2rgb(I::GMTimage, cmap::GMTcpt=GMTcpt(), layout="BRPa")Convert an indexed GMTimage I to RGB. If cmap is not provided, it uses the internal colormap to do the conversion. If neither them exists, the layer is replicated 3 times thus resulting in a gray scale image.
This function mimics the Matlab’s ind2rgb cousin.
See Also
Source Code
This function has multiple methods:
ind2rgb(I::GMTimage, cpt::GMTcpt, layout; cmap)- utils_types.jl:2119ind2rgb(I::GMTimage, cpt::GMTcpt; ...)- utils_types.jl:2119ind2rgb(I::GMTimage; ...)- utils_types.jl:2119